package com.kakavr.deposit.service;

import java.util.Map;

import javax.annotation.Resource;

import org.joda.time.DateTime;
import org.springframework.stereotype.Service;

import com.beust.jcommander.internal.Maps;
import com.kakavr.base.service.BaseService;
import com.kakavr.deposit.dao.IDepositLogDao;

@Service
public class DepositLogService extends BaseService implements
		IDepositLogService {
	@Resource
	private IDepositLogDao depositLogDao;

	@Override
	public void addDepositLog(Object storeId, Object amount, Object balance,
			int category) {
		Map<String,Object> map = Maps.newHashMap();
		map.put("createtime", DateTime.now().toDate());
		map.put("storeId", storeId);
		map.put("amount", amount);
		map.put("balance", balance);
		map.put("category", category);
		depositLogDao.insertDepositLog(map);
	}

}
